package com.icloud.wallet.boot.dto;


import com.icloud.common.core.constant.ValidateConstant;
import com.icloud.common.database.enums.RedPacketTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel("发红包参数")
@Data
public class SendRedPacketDto {
    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = ValidateConstant.NOT_BLANK)
    private String title;
    /**
     * @see RedPacketTypeEnum
     */
    @ApiModelProperty(value = "红包类型,SINGLE_NORMAL:单聊红包,EXCLUSIVE:群发专属红包", required = true)
    @NotBlank(message = ValidateConstant.NOT_BLANK)
    private String type;

    @ApiModelProperty("红包发放金额")
    @NotNull(message = ValidateConstant.NOT_NULL)
    private BigDecimal amount;

    @ApiModelProperty("红包数量,默认为1")
    private Integer number;

    @ApiModelProperty("群组id,群发专属红包时必填")
    private String groupId;

    @ApiModelProperty("领取人id")
    @NotNull(message = ValidateConstant.NOT_NULL)
    private Long receiveId;

    @ApiModelProperty("红包派发时间")
    private Long sendTime;
}
